package ccy.ccykills.event;

import org.bukkit.entity.Player;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

/**
 * 作者：太难猫
 * 创建时间： 2025/6/12 09:13
 */
public class KillPlayerEvent extends Event implements Cancellable {
    private final Player player;
    private boolean cancelled = false;
    private static final HandlerList handlers = new HandlerList();

    public KillPlayerEvent(Player player) {
        this.player = player;
    }

    public static HandlerList getHandlerList() {
        return handlers;
    }

    public HandlerList getHandlers() {
        return handlers;
    }

    public Player getPlayer() {
        return this.player;
    }

    public boolean isCancelled() {
        return this.cancelled;
    }

    public void setCancelled(boolean b) {
        this.cancelled = b;
    }
}
